const joi = require('joi')

// 账号的校验
const account = joi.string().alphanum().min(6).max(12).required()
// 密码的校验
const password = joi.string().pattern(/^(?![0-9]+$)[a-z0-9]{1,50}$/).min(6).max(12).required()


exports.login_limit = {
  body: {
    account,
    password
  }
}
